// 判断当前页面路由是否需要鉴权
const isNoAuthPage = (page) => {
	const loginPageReg = /login|loginPhone/;
	if (page) {
		return loginPageReg.test(page)
	}
	else {
		let pages = getCurrentPages();
		return loginPageReg.test(pages[pages.length - 1].route);
	}
}

export default isNoAuthPage